package main

import (
	"os/exec"
)

const (
	_bmProtoc = "protoc --proto_path=%s --proto_path=%s --proto_path=%s --dam_out=explicit_http=true:."
)

func installBMGen() error {
	return exec.Command("kratos", "tool", "check_install", "protoc-gen-dam").Run()
}

func genBM(files []string) error {
	return generate(_bmProtoc, files)
}
